package com.example.demo.service;

import com.example.demo.entity.Classes;
import com.example.demo.entity.User;
import com.example.demo.mapper.UserMapper;
import com.example.demo.util.PageRequest;
import com.example.demo.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author:wjup
 * @Date: 2018/9/26 0026
 * @Time: 15:23
 */

public interface UserService {




    public Integer getUserCount(Map<String, Integer> map);

    public Classes getClass3(int id);

    public Classes getClass(int id);

    public User getUser(int id);


    public void addUser(User user);


    public void delUser(int id);


    public void updateUser(User user);


    public List<User> getAllUser();

    public List<User> getAllUserLike(String name);

    public void addUserByAn(User user);

    public PageResult findPage(PageRequest pageQuery);

    List<User> findUser(User user);
}
